﻿
using QFramework;

namespace ProjectChildhood
{
    [System.Serializable]
    public class Item
    {
        public string Name;
        public string Icon;
        public bool Countable = false; // 是否可堆叠
        public ITool Tool;
        public bool IsPlant;
        public string PlantPrefab;

        public Item CopySelf()
        {
            Item item = new Item()
            {
                Name = Name,
                Icon = Icon,
                Countable = Countable,
                Tool = Tool,
                IsPlant = IsPlant,
                PlantPrefab = PlantPrefab
            };

            return item;
        }
    }
}
